-- GENERATED SPELL FOR [Bonechewer Mutant] --


function spell0_16876(pUnit, Event) --@Bonechewer Bite,n/a--
pUnit:FullCastSpellOnTarget(34113,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16876', 548, 1)
end

function spell1_16876(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_16876', 668, 1)
end

function spell2_16876(pUnit, Event) --@Instability,Self--
pUnit:FullCastSpellOnTarget(34114,pUnit)
pUnit:RegisterEvent('Sorts_16876', 0, 1)
end

function Sorts_16876(pUnit, Event)
local choix_sorts_16876 = math.random(0, 2)
if choix_sorts_16876 == 0 then
pUnit:RegisterEvent('spell0_16876', 1, 1)
end
if choix_sorts_16876 == 1 then
pUnit:RegisterEvent('spell1_16876', 1, 1)
end
if choix_sorts_16876 == 2 then
pUnit:RegisterEvent('spell2_16876', 1, 1)
end
end

function mob16876_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16876', math.random(1500, 3000), 1)
end

function mob16876_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16876_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16876_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16876, 1, 'mob16876_Action')
RegisterUnitEvent(16876, 2, 'mob16876_Leave')
RegisterUnitEvent(16876, 3, 'mob16876_Kill')
RegisterUnitEvent(16876, 4, 'mob16876_Die')
